using Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnesSystem.Models
{
    public class ActionModel : ObservableObject
    {
        private DateTime time;
        private string status;
        private string user;
        private float speed;
        private string speedUnit;
        private float rate;
        private string action;
        private string note;
        private string weight;
        private string all;

        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime Time
        {
            get
            {
                return time;
            }

            set
            {
                time = value;
                RaisePropertyChanged("Time");
            }
        }
        public string Status
        {
            get
            {
                return status;
            }

            set
            {
                status = value;
                RaisePropertyChanged("Status");
            }
        }
        public string User
        {
            get
            {
                return user;
            }

            set
            {
                user = value;
                RaisePropertyChanged("User");
            }
        }
        public float Speed
        {
            get
            {
                return speed;
            }

            set
            {
                speed = value;
                RaisePropertyChanged("Speed");
            }
        }
        public string SpeedUnit
        {
            get
            {
                return speedUnit;
            }

            set
            {
                speedUnit = value;
                RaisePropertyChanged("SpeedUnit");
            }
        }
        public float Rate
        {
            get
            {
                return rate;
            }

            set
            {
                rate = value;
                RaisePropertyChanged("Rate");
            }
        }
        public string Action
        {
            get
            {
                return action;
            }

            set
            {
                action = value;
                RaisePropertyChanged("Action");
            }
        }
        public string Note
        {
            get
            {
                return note;
            }

            set
            {
                note = value;
                RaisePropertyChanged("Note");
            }
        }
        public string Weight
        {
            get
            {
                return weight;
            }

            set
            {
                weight = value;
                RaisePropertyChanged("Weight");
            }
        }
        public string All
        {
            get
            {
                return all;
            }

            set
            {
                all = value;
                RaisePropertyChanged("All");
            }
        }

    }
}